ScssPhp\ScssPhp\Compiler D

Total Complexity 1,724
Dependencies 31
Dependents 4
Total lines 9,944
Lines of code 5,443
Logical lines of code 3,596
Comment lines 2,298
Methods 295
Properties 138

Methods 295

Method Rating Maintainability Complexity Lines of code
compileChild()
D
4
119 362
compileValue()
D
18
72 193
reduce()
D
27
54 116
alterColor()
D
30 38 99
libHsl()
C
37 32 62
cssValidArg()
C
36 30 74
matchExtends()
C
33 29 89
compileMediaQuery()
C
34 28 90
matchExtendsSingle()
C
34 28 86
compileString()
C
32 26 100
coerceColor()
C
35 27 84
evaluateArguments()
B
37 21 72
findImport()
B
39 21 60
applyArguments()
B
39 18 64
sortNativeFunctionArgs()
B
40 18 56
unifyCompoundSelectors()
B
41 17 59
opColorColor()
B
42 17 49
fncall()
B
43 17 45
get()
B
44 17 43
isSuperSelector()
B
42 16 57
verifyPrototype()
A
43 15 45
evaluateMediaQuery()
A
44 14 42
mergeMediaTypes()
A
47 14 41
filterScopeWithWithout()
A
43 13 48
setExisting()
A
46 13 39
joinSelectors()
A
46 13 38
multiplySelectors()
A
46 12 39
combineSelectorSingle()
A
47 12 36
libIndex()
A
48 12 31
isWith()
A
49 12 28
flattenSelectors()
A
47 11 37
coerceList()
A
46 11 37
libJoin()
A
47 11 35
escapeNonPrintableChars()
A
48 11 33
compileImport()
A
48 11 32
evalSelectorPart()
A
55 12 17
getFunctionReference()
A
47 11 32
compileDirective()
A
49 11 29
libRgb()
A
47 10 37
selectorAppend()
A
50 10 30
inspectFormatValue()
A
49 10 30
compileColorPartValue()
A
50 10 30
pushOrMergeExtentedSelector()
A
50 10 28
mergeDirectRelationships()
A
51 10 26
compileMedia()
A
45 9 41
glueFunctionSelectors()
A
53 10 22
getTypeOf()
A
54 10 21
multiplyMedia()
A
48 9 35
getSelectorArg()
A
49 9 30
opOr()
A
58 10 14
opAnd()
A
58 10 14
checkPrototypeMatches()
A
52 9 25
callNativeFunction()
A
51 9 24
compileAtRoot()
A
47 8 36
compileChildrenNoReturn()
A
53 9 20
callStackMessage()
A
53 9 20
compileWith()
A
49 8 31
mergeParts()
A
51 8 29
stringifyFncallArgs()
A
50 8 28
normalizeValue()
A
51 8 26
matchPartInCompound()
A
53 8 24
coerceValue()
A
54 8 23
isFreshCachedResult()
A
54 8 21
collapseSelectorsAsList()
A
49 7 34
parseFunctionPrototype()
A
48 7 33
appendRootDirective()
S
51 7 26
extendOrReplaceSelectors()
S
51 7 26
selectFunctionPrototype()
S
54 7 21
expToString()
S
55 7 20
compileNestedBlock()
S
49 6 30
applyArgumentsToDeclaration()
S
50 6 28
completeScope()
S
61 7 11
libZip()
S
52 6 26
toHSL()
S
52 6 23
libMix()
S
53 6 21
compileCommentValue()
S
56 6 19
flattenSelectorSingle()
S
56 6 19
hueToRGB()
S
57 6 17
injectVariables()
S
58 6 15
checkSelectorArgType()
S
59 6 14
hasSelectorPlaceholder()
S
60 6 13
findScopeSelectors()
S
61 6 13
libStrSlice()
S
51 5 27
shouldEval()
S
61 6 12
errorArgsNumber()
S
53 5 23
callScssFunction()
S
53 5 22
compileNestedPropertiesBlock()
S
54 5 20
appendOutputLine()
S
55 5 20
libMapRemove()
S
56 5 18
opAdd()
S
58 5 17
escapeImportPathString()
S
57 5 17
RGBtoHWB()
S
56 5 17
replaceSelfSelector()
S
58 5 16
testWithWithout()
S
68 6 6
extractRelationshipFromFragment()
S
58 5 15
fixColor()
S
59 5 14
handleImportLoop()
S
59 5 14
libKeywords()
S
58 5 14
libListSeparator()
S
59 5 13
isSuperPart()
S
60 5 13
libMin()
S
60 5 13
libMax()
S
60 5 13
addVariables()
S
60 5 12
libSelectorNest()
S
54 4 21
libCall()
S
54 4 20
compileBlock()
S
56 4 19
evalSelectors()
S
56 4 18
compileSelectorPart()
S
58 4 16
libMapMerge()
S
57 4 16
stringTransformAsciiOnly()
S
58 4 16
getPrettyPath()
S
59 4 15
libAdjustColor()
S
60 4 15
missingSelectors()
S
58 4 15
libSetNth()
S
59 4 14
compile()
S
58 4 14
filterWithWithout()
S
59 4 14
listSeparatorForJoin()
S
61 4 13
checkImportPathConflicts()
S
60 4 13
libMapGet()
S
59 4 13
libGetFunction()
S
60 4 12
coerceMap()
S
63 4 12
compileStringContent()
S
62 4 11
libRandom()
S
61 4 11
libSelectorReplace()
S
61 4 11
libSelectorExtend()
S
61 4 11
importFile()
S
52 3 25
libStrInsert()
S
56 3 19
collapseSelectors()
S
57 3 18
HWBtoRGB()
S
57 3 16
libInvert()
S
57 3 16
libScssphpGlob()
S
57 3 15
toRGB()
S
57 3 15
backPropagateEnv()
S
67 4 7
libNth()
S
62 4 10
mediaParent()
S
65 4 9
extractSlashAlphaInColorFunction()
S
64 4 9
getArgumentListKeywords()
S
68 4 6
opColorNumber()
S
61 3 14
opNumberColor()
S
61 3 14
addLocationToMessage()
S
60 3 13
libFunctionExists()
S
60 3 13
checkCompatibleTags()
S
62 3 12
libSelectorUnify()
S
61 3 12
compileChildren()
S
62 3 12
libStrIndex()
S
60 3 12
libSelectorAppend()
S
61 3 12
setOutputStyle()
S
62 3 12
libScaleColor()
S
61 3 12
resolveImportPath()
S
61 3 12
compileDebugValue()
S
62 3 12
tryImportPath()
S
63 3 11
extractInterpolation()
S
61 3 11
pushExtends()
S
62 3 11
set()
S
63 3 11
makeOutputBlock()
S
56 2 19
coercePercent()
S
66 3 9
libComparable()
S
64 3 10
mapHasKey()
S
64 3 9
assertString()
S
63 3 10
libIsBracketed()
S
66 3 8
libUnquote()
S
58 2 15
libAlpha()
S
69 3 6
libUniqueId()
S
61 3 10
libIeHexStr()
S
64 3 8
findTagName()
S
67 3 8
__construct()
S
63 3 10
parserFactory()
S
62 3 10
isImmediateRelationshipCombinator()
S
78 3 3
registerFunction()
S
64 3 9
isPseudoSelector()
S
65 3 9
error()
S
66 3 9
addParsedFile()
S
71 3 5
opNeq()
S
65 3 9
opEq()
S
65 3 9
setEncoding()
S
65 3 8
isSelfExtend()
S
67 3 8
pushCallStack()
S
60 2 13
compileSelector()
S
63 2 12
compileImportPath()
S
62 2 11
setImportPaths()
S
62 2 11
libSimpleSelectors()
S
62 2 11
pushEnv()
S
62 2 11
libAppend()
S
63 2 10
libOpacity()
S
69 2 7
adjustHsl()
S
64 2 9
isTruthy()
S
79 2 3
libBlue()
S
67 2 7
libGrayscale()
S
67 2 7
libSaturate()
S
63 2 10
libRed()
S
67 2 7
libOpacify()
S
66 2 7
libTransparentize()
S
66 2 7
libFeatureExists()
S
67 2 7
setRaw()
S
71 2 6
getStoreEnv()
S
79 2 3
extractEnv()
S
69 2 7
compactEnv()
S
71 2 6
getStringText()
S
70 2 6
toBool()
S
80 2 3
libGreen()
S
67 2 7
maybeReduce()
S
71 2 6
assertColor()
S
68 2 7
prependSelectors()
S
67 2 8
assertList()
S
70 2 6
assertMap()
S
66 2 8
addImportPath()
S
72 2 5
assertNumber()
S
68 2 7
assertInteger()
S
67 2 7
getSourcePosition()
S
70 2 5
coerceString()
S
70 2 6
tryImportPathAsDirectory()
S
70 2 6
tryImportPathWithExtensions()
S
65 2 10
compileRGBAValue()
S
70 2 6
setFormatter()
S
67 2 7
libChangeColor()
S
67 2 8
libIf()
S
68 2 7
coerceForExpression()
S
72 2 6
compileDirectiveName()
S
72 2 6
compileKeyframeBlock()
S
59 1 14
getCompileOptions()
S
60 1 13
normalizeNativeFunctionName()
S
63 1 11
libStrLength()
S
71 1 5
opModNumberNumber()
S
80 1 3
opEqNumberNumber()
S
80 1 3
opNeqNumberNumber()
S
79 1 3
setLogger()
S
81 1 3
libUnit()
S
74 1 4
libUnitless()
S
74 1 4
libToLowerCase()
S
69 1 6
compileComment()
S
72 1 5
libVariableExists()
S
71 1 5
libToUpperCase()
S
69 1 6
setErrorOuput()
S
75 1 4
evalSelector()
S
78 1 3
libSelectorParse()
S
72 1 5
popCallStack()
S
81 1 3
libIsSuperselector()
S
69 1 6
compileRoot()
S
70 1 6
formatOutputSelector()
S
77 1 4
libInspect()
S
75 1 4
opDivNumberNumber()
S
80 1 3
normalizeName()
S
79 1 3
opAddNumberNumber()
S
80 1 3
opMulNumberNumber()
S
80 1 3
libCounter()
S
72 1 4
libMixinExists()
S
71 1 5
libGlobalVariableExists()
S
71 1 5
opSubNumberNumber()
S
80 1 3
libTypeOf()
S
75 1 4
libCeil()
S
73 1 4
opGteNumberNumber()
S
80 1 3
setNumberPrecision()
S
76 1 4
libAdjustHue()
S
71 1 5
libLightness()
S
70 1 5
libSaturation()
S
70 1 5
libHue()
S
70 1 5
libHsla()
S
79 1 3
unsetVariable()
S
80 1 3
getVariables()
S
82 1 3
getParsedFiles()
S
76 1 4
libRgba()
S
79 1 3
libDarken()
S
70 1 5
setLineNumberStyle()
S
76 1 4
setSourceMap()
S
81 1 3
setSourceMapOptions()
S
81 1 3
unregisterFunction()
S
79 1 3
addFeature()
S
75 1 4
registerImport()
S
77 1 3
isCssImport()
S
78 1 3
setIgnoreErrors()
S
76 1 4
getBuiltinFunction()
S
75 1 4
libLighten()
S
70 1 5
libDesaturate()
S
70 1 5
opGtNumberNumber()
S
80 1 3
has()
S
78 1 3
opLteNumberNumber()
S
80 1 3
opLtNumberNumber()
S
80 1 3
flattenList()
S
74 1 4
libMapHasKey()
S
74 1 4
libMapValues()
S
71 1 5
libMapKeys()
S
71 1 5
popEnv()
S
77 1 4
libLength()
S
73 1 4
libAbs()
S
73 1 4
libComplement()
S
77 1 3
isNativeFunction()
S
78 1 3
libFloor()
S
73 1 4
libRound()
S
73 1 4
libPercentage()
S
71 1 5
libQuote()
S
72 1 5
replaceVariables()
S
76 1 4
libFadeOut()
S
80 1 3
libFadeIn()
S
80 1 3
setVariables()
S
76 1 4
throwError()
S
69 1 7